FROM openjdk:8-jdk-alpine

ARG JAR_FILE
ADD target/${JAR_FILE} /workhome/app.jar

# 暴露端口
# REST端口
EXPOSE 8081
# Dubbo端口
EXPOSE 10001

WORKDIR /workhome
ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -jar app.jar